package edu.zut.pioneer.sale.domain;


import edu.zut.pioneer.base.domain.BaseEntity;

import javax.persistence.*;
import java.util.Date;

@Entity
@Table(name = "sale")


public class Sale extends BaseEntity<Long> {


    @Column(name = "date", nullable = false)
    private Date date;
    @Column(name = "income_price")
    private Integer income_Price;
    @Column(name = "profit_price")
    private Integer profit_Price;

    public Sale() {
    }

    public Sale(Date date, Integer income_Price, Integer profit_Price) {
        this.date = date;
        this.income_Price = income_Price;
        this.profit_Price = profit_Price;
    }

    @Override
    public String toString() {
        return "Sale{" +
                ", date=" + date +
                ", income_Price=" + income_Price +
                ", profit_Price=" + profit_Price +
                '}';
    }


    public Date getDate() {
        return date;
    }

    public Integer getIncome_Price() {
        return income_Price;
    }

    public Integer getProfit_Price() {
        return profit_Price;
    }


    public void setDate(Date date) {
        this.date = date;
    }

    public void setIncome_Price(Integer income_Price) {
        this.income_Price = income_Price;
    }

    public void setProfit_Price(Integer profit_Price) {
        this.profit_Price = profit_Price;
    }
}
